<?php

include_once("../../config_controller.php");
$host = $_SERVER['HTTP_HOST']; //取得进入所输入的域名
$theme_folder = host_theme($host);

include_once '../../front/'.$theme_folder.'/connection.php';
?>

<?php include_once("function.php"); ?>
<?php include "../../front/".$theme_folder."/config.php"; ?>

<?php

$img_width_height = array('','');
	
$detail_first = select_one_line_all_items($table_Prefix . "term", " belong = '".$system_part."' and publish = 1  order by nid asc "); 
	
$first_icon_data = $detail_first['icon'] != 'alpha.gif' && $detail_first['icon'] != '' && file_exists((ROOT_PATH_.'/uploadfiles/'.$theme_folder.'/'.$detail_first['icon']) ) == 1  ? getimagesize(ROOT_PATH_.'/uploadfiles/'.$theme_folder.'/'.$detail_first['icon']) : $img_width_height;

$first_extend_img_data = $detail_first['extend_img'] != 'alpha.gif' && $detail_first['extend_img'] != ''  && file_exists((ROOT_PATH_.'/uploadfiles/'.$theme_folder.'/'.$detail_first['extend_img']) ) == 1  ? getimagesize(ROOT_PATH_.'/uploadfiles/'.$theme_folder.'/'.$detail_first['extend_img']) : $img_width_height;

$first_banner_data = $detail_first['term_banner'] != 'alpha.gif' && $detail_first['term_banner'] != ''  && file_exists((ROOT_PATH_.'/uploadfiles/'.$theme_folder.'/'.$detail_first['term_banner']) ) == 1  ? getimagesize(ROOT_PATH_.'/uploadfiles/'.$theme_folder.'/'.$detail_first['term_banner']) : $img_width_height;


?>